//
//  MBMineDataManager.h
//  Meboo
//
//  Created by kyo on 2023/10/16.
//

#import <Foundation/Foundation.h>
#import "KLInterestsModel.h"
#import "MBVipEquityModel.h"
#import "NSVipInfonModel.h"
#import "NSProductModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface MBMineDataManager : NSObject
//用户interests列表数组
@property(nonatomic,strong) NSMutableArray <KLInterestsModel *>*interestsArr;
@property(nonatomic,strong) NSMutableArray <MBVipEquityModel *>*vipEquityArr;
@property(nonatomic,strong) NSMutableArray <NSVipInfonModel *>*privateArr;
//@property(nonatomic,strong) NSMutableArray <NSProductModel *>*productArr;
@property(nonatomic,strong) NSMutableArray <NSProductModel *>*vipProductArr;
@property(nonatomic,strong) NSMutableArray <NSProductModel *>*fcProductArr;
@property(nonatomic,strong) NSMutableArray <NSProductModel *>*ppProductArr;
@property(nonatomic,strong) NSMutableArray <NSProductModel *>*pvProductArr;
@property(nonatomic,copy) NSString *orderNo;
+ (MBMineDataManager *)sharedManager;

#pragma mark -用户注销
- (void)logOut:(void(^)(BOOL success))resultBlock;

#pragma mark -获取用户interests列表
- (void)getInterests:(void(^)(BOOL success))resultBlock;

#pragma mark -更改个人信息
- (void)changeUserInfoWithKey:(NSString *)key value:(id)value Success:(void(^)(BOOL success))resultBlock;

#pragma mark -更改个人信息---profile页面done操作
- (void)saveUserInfoWithName:(NSString *)name about:(NSString *)about interests:(NSArray *)interests  Success:(void(^)(BOOL success))resultBlock;

#pragma mark -支付校验
/**
 返回三个状态
 0：成功验单
 1：请求成功了，但是验单没有成功
 2：请求失败
 */
- (void)checkApplePayWith:(NSString *)productCode orderNo:(NSString *)orderNo orderId:(NSString *)orderId payReceipt:(NSString *)payReceipt  Success:(void(^)(NSInteger state))resultBlock;

#pragma mark -获取vip享受的权益列表
- (void)getVipEquity:(void(^)(BOOL success))resultBlock;

#pragma mark -获取私密相册/fc信息
- (void)getUserPrivateInfo:(void(^)(BOOL success))resultBlock;

#pragma mark -消费 pp/pv/fc接口
/**
 benefitCode：1-fc 2-pp 3-pv
 benefitName：权益名称
 chatUserCode：Model Code
 msgId：聊天过程中触发的必须传递msgId
 imageCode：ppv必传
 imageUrl：ppv必传
 */
- (void)payWithType:(NSInteger)type chatUserCode:(NSString *)userCode msgId:(NSString *)msgId imageCode:(NSString *)imageCode imageUrl:(NSString *)imageUrl success:(void(^)(BOOL success))resultBlock;

#pragma mark -获取会员产品列表接口
/**
 productCategory：1-会员 2-fc 3-pp 4-pv
 */
- (void)getMemberProductWithType:(NSInteger)type success:(void(^)(BOOL success))resultBlock;

#pragma mark -获取商品id (支付去苹果校验之前,先请求后端接口获得商品id)
/**
 productCategory：1-会员 2-fc 3-pp 4-pv
 */
- (void)getProductIdWithType:(NSInteger)type productCode:(NSString *)productCode modelUserCode:(NSString *)modelUserCode success:(void(^)(BOOL success))resultBlock;

#pragma mark -支付失败调用接口,给主播发消息
//- (void)getProductIdWithType:(NSInteger)type productCode:(NSString *)productCode modelUserCode:(NSString *)modelUserCode success:(void(^)(BOOL success))resultBlock;
@end

NS_ASSUME_NONNULL_END
